Knuth–Morris–Pratt Algorithm

join shbcf.ru